/*************************************************************************
 * File Name:    A.cc
 * Author:       zero91
 * Mail:         jianzhang9102@gmail.com
 * Created Time: Mon 07 Oct 2013 11:42:02 PM CST
 * 
 * Description:  http://codeforces.com/contest/280/problem/A
 ************************************************************************/

#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <map>
#include <set>
#include <functional>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cctype>
#include <cmath>

using namespace std;

#define epsilon 1e-9

int
main(int argc, char *argv[])
{
    double pi = acos(-1.0);
    double w, h, alpha, beta;
    double ans, s, t;

    scanf("%lf%lf%lf", &w, &h, &alpha);

    if (w < h) swap(w, h);

    if (fabs(alpha - 90) < epsilon) {
        ans = h * h;
    } else {
        ans = w * h;
        w /= 2, h /= 2;
        if (alpha > 90) alpha = 180 - alpha;
        alpha *= pi / 180;
        beta = (pi - alpha) / 2;

        s = h - w / tan(beta);
        ans -= s * s * tan(alpha);

        t = w - h / tan(beta);
        ans -= t * t * tan(alpha);
        if (s < 0) ans = 4 * h * h / sin(alpha);
    }
    printf("%.9lf\n", ans);

    return 0;
}
